package com.egao.common.module.student.constants;

import com.egao.common.module.student.entity.Student;

/**
 * 学生常量工具类
 * @author lym
 */
public class StudentConstants {

    /** 学生问卷状态 提交 */
    public static final String STUDENT_QUESTIONNAIRE_SUBMIT = "0";
    /** 学生问卷状态 待提交 */
    public static final String STUDENT_QUESTIONNAIRE_WAIT= "1";


    /** 生源 学生状态 提交 */
    public static final String STUDENT_STUDENT_SUBMIT = "0";
    /** 生源 学生状态 未提交 */
    public static final String STUDENT_STUDENT_WAIT = "1";


    /** 生源 学院审核 通过 */
    public static final String STUDENT_COLLEGE_PASS = "0";
    /** 生源 学院审核 待审核 */
    public static final String STUDENT_COLLEGE_WAIT = "1";
    /** 生源 学院审核 退回 */
    public static final String STUDENT_COLLEGE_FAILED = "2";


    /** 生源 学校审核 通过 */
    public static final String STUDENT_SCHOOL_PASS = "0";
    /** 生源 学校审核 待审核 */
    public static final String STUDENT_SCHOOL_WAIT = "1";
    /** 生源 学校审核 退回 */
    public static final String STUDENT_SCHOOL_FAILED = "2";


    /** 记录 类型 */
    public static final String RECORD_TYPE_INTEN = "就业意向";
    public static final String RECORD_TYPE_STUDENT = "生源";
    public static final String RECORD_TYPE_SIGN = "毕业去向登记";
    public static final String RECORD_TYPE_SIGN_BLANK = "毕业去向登记-空白协议";
    public static final String RECORD_TYPE_STATUS = "就业状态";

    /** 记录 操作 */
    public static final String RECORD_OPERATE_DELAY = "延期";
    public static final String RECORD_OPERATE_LOCK = "定向生锁定";
    public static final String RECORD_OPERATE_UNLOCK = "定向生解锁";

    public static final String RECORD_OPERATE_STUDENT_INTEN = "学生修改就业意向";
    public static final String RECORD_OPERATE_STUDENT_SUBMIT = "学生提交生源信息";
    public static final String RECORD_OPERATE_STUDENT_SIGN_PICK = "学生选择就业方式";
    public static final String RECORD_OPERATE_STUDENT_SIGN_RESET = "学生重置就业方式";
    public static final String RECORD_OPERATE_STUDENT_SIGN_SUBMIT = "学生提交毕业去向登记";
    public static final String RECORD_OPERATE_STUDENT_SIGN_UPLOAD = "学生上传备案表";
    public static final String RECORD_OPERATE_STUDENT_SIGN_AGREED = "学生应约";
    public static final String RECORD_OPERATE_STUDENT_SIGN_TERMINATION = "学生申请解约";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_ADD = "新增空白协议";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_EDIT = "修改空白协议";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_CHECK_PASS = "空白协议审核通过";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_CHECK_FAIL = "空白协议审核不通过";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_STUDENT_UPLOAD = "学生上传空白协议";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_PICK = "空白协议通过初始化协议就业自主录入";
    public static final String RECORD_OPERATE_STUDENT_SIGN_BLANK_FAIL = "空白协议作废";

    public static final String RECORD_OPERATE_COLLEGE_PASS = "学院通过生源信息";
    public static final String RECORD_OPERATE_COLLEGE_FAILED = "学院退回生源信息";
    public static final String RECORD_OPERATE_COLLEGE_SIGN_CHECK = "学院毕业去向登记审核";
    public static final String RECORD_OPERATE_COLLEGE_SIGN_EDIT = "学院毕业去向登记修改";

    public static final String RECORD_OPERATE_SCHOOL_ADD = "校添加生源信息";
    public static final String RECORD_OPERATE_SCHOOL_SUBMIT = "校修改生源信息";
    public static final String RECORD_OPERATE_SCHOOL_PASS = "校通过生源信息";
    public static final String RECORD_OPERATE_SCHOOL_FAILED = "校退回生源信息";
    public static final String RECORD_OPERATE_SCHOOL_SIGN_UPDATE = "校修改毕业去向登记";

    public static final String RECORD_OPERATE_COMPANY_SIGN_UPDATE = "用人单位修改邀约信息";
    public static final String RECORD_OPERATE_COMPANY_SIGN_UPDATE_YY = "学生应约后用人单位修改邀约信息";
    public static final String RECORD_OPERATE_COMPANY_SIGN_INVITATION = "用人单位发起邀约";

    public static final String RECORD_OPERATE_COLLEGE_RESET = "院重置就业方式";
    public static final String RECORD_OPERATE_SCHOOL_RESET = "校重置就业方式";

    public static final String RECORD_OPERATE_STUDENT_DELETE = "删除生源";
    public static final String RECORD_OPERATE_STUDENT_DELETE_FAIL = "删除生源失败";

    public static final String RECORD_OPERATE_STATUS = "修改就业状态";


    /** 培养方式 非定向 */
    public static final String PYFS_FDX = "10";
    /** 培养方式 定向 */
    public static final String PYFS_DX = "20";
    /** 培养方式 委培 */
    public static final String PYFS_WP = "30";

    /** 定向生 解锁 */
    public static final String DIRECTIONAL_STATE = "0";
    /** 定向生 锁定 */
    public static final String DIRECTIONAL_STATE_LOCK = "1";


    /** 生源导出类型 参数名 */
    public static final String STUDENT_EXPORT_PARAM = "exportType";
    /** 生源导出类型 文字 */
    public static final String STUDENT_EXPORT_TEXT = "text";
    /** 生源导出类型 代码 */
    public static final String STUDENT_EXPORT_CODE = "code";

    /** 学历 本科 */
    public static final String STUDENT_XL_BK = "31";
    /** 学历 本科二学位 */
    public static final String STUDENT_XL_BKRXW = "25";
    /** 学历 硕士 */
    public static final String STUDENT_XL_SS = "11";
    /** 学历 博士 */
    public static final String STUDENT_XL_BS = "01";

    /** 本研学历 本科 */
    public static final String STUDENT_DEGREE_BK = "1";
    /** 本研学历 研究生 */
    public static final String STUDENT_DEGREE_YJS = "2";

    /** 延期状态 正常 */
    public static final String STUDENT_DELAY_FALSE = "0";
    /** 延期状态 延期 */
    public static final String STUDENT_DELAY_TRUE = "1";

    /** 空白协议状态 正常 可以开展一切活动 */
    public static final Integer STUDENT_BLANK_TRUE = 0;
    /** 空白协议状态 不正常 无法被邀约、应约、自主录入 */
    public static final Integer STUDENT_BLANK_FALSE = 1;

    /** 就业状态 系统标记 */
    public static final String SIGN_STATUS_SYS = "0";
    /** 就业状态 人工标记 */
    public static final String SIGN_STATUS_MANUAL = "1";

    /** 学生网签是否可以自主录入状态 是 */
    public static final String SIGN_ENTRY_TRUE = "0";
    /** 学生网签是否可以自主录入状态 否 */
    public static final String SIGN_ENTRY_FALSE = "1";

    /** 学籍状态 正常 */
    public static final String XJZT_ZC = "1";
    /** 学籍状态 休学 */
    public static final String XJZT_XX = "2";

    /** 学习方式 全日制 */
    public static final String XXFS_QRZ = "101";
    /** 学习方式 非全日制 */
    public static final String XXFS_FQRZ = "102";

    /** 学生自由解约 开启 */
    public static final String FREE_TERMINATION_OPEN = "0";
    /** 学生自由解约 关闭 */
    public static final String FREE_TERMINATION_CLOSE = "1";

    /** 特困生 是 */
    public static final String TKS_TRUE = "0";
    /** 特困生 是 */
    public static final String TKS_FALSE = "1";

    /**
     * 获取学生自由解约标签
     * @param state 标签值
     * @return String
     */
    public static String getFreeTerminationName(String state) {
        return FREE_TERMINATION_OPEN.equals(state) ? "开启" : "关闭";
    }

}
